<template>
  <div class="privacy-container">
    <div class="privacy-content">
      <div class="privacy-header">
        <h1>{{ t('privacy.title') }}</h1>
        <div class="back-button">
          <el-button @click="$router.go(-1)">{{ t('common.back') }}</el-button>
        </div>
      </div>
      
      <div class="privacy-body">
        <p class="intro">{{ t('privacy.intro') }}</p>
        
        <h2>1. {{ t('privacy.informationCollect') }}</h2>
        <p>{{ t('privacy.informationCollectContent') }}</p>
        <ul>
          <li>{{ t('privacy.personalInfo') }}</li>
          <li>{{ t('privacy.usageData') }}</li>
          <li>{{ t('privacy.deviceInfo') }}</li>
          <li>{{ t('privacy.cookies') }}</li>
        </ul>
        
        <h2>2. {{ t('privacy.useOfInformation') }}</h2>
        <p>{{ t('privacy.useOfInformationContent') }}</p>
        <ul>
          <li>{{ t('privacy.provideService') }}</li>
          <li>{{ t('privacy.improveService') }}</li>
          <li>{{ t('privacy.communication') }}</li>
          <li>{{ t('privacy.marketing') }}</li>
        </ul>
        
        <h2>3. {{ t('privacy.informationSharing') }}</h2>
        <p>{{ t('privacy.informationSharingContent') }}</p>
        
        <h2>4. {{ t('privacy.dataRetention') }}</h2>
        <p>{{ t('privacy.dataRetentionContent') }}</p>
        
        <h2>5. {{ t('privacy.dataSecurity') }}</h2>
        <p>{{ t('privacy.dataSecurityContent') }}</p>
        
        <h2>6. {{ t('privacy.yourRights') }}</h2>
        <p>{{ t('privacy.yourRightsContent') }}</p>
        
        <h2>7. {{ t('privacy.thirdPartyLinks') }}</h2>
        <p>{{ t('privacy.thirdPartyLinksContent') }}</p>
        
        <h2>8. {{ t('privacy.childrenPrivacy') }}</h2>
        <p>{{ t('privacy.childrenPrivacyContent') }}</p>
        
        <h2>9. {{ t('privacy.changes') }}</h2>
        <p>{{ t('privacy.changesContent') }}</p>
        
        <h2>10. {{ t('privacy.contactUs') }}</h2>
        <p>{{ t('privacy.contactUsContent') }}</p>
      </div>
      
      <div class="privacy-footer">
        <p>{{ t('privacy.lastUpdated') }}: 2023-05-01</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { t } from '@/utils/i18n'
</script>

<style scoped>
.privacy-container {
  min-height: 100vh;
  background-color: #f5f7fa;
  padding: 40px;
  display: flex;
  justify-content: center;
}

.privacy-content {
  max-width: 800px;
  width: 100%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.privacy-header h1 {
  font-size: 28px;
  color: #303133;
  margin: 0;
}

.privacy-body {
  color: #606266;
  line-height: 1.6;
}

.privacy-body h2 {
  font-size: 20px;
  color: #303133;
  margin-top: 30px;
  margin-bottom: 15px;
}

.privacy-body p {
  margin-bottom: 20px;
}

.privacy-body .intro {
  font-size: 16px;
  margin-bottom: 30px;
}

.privacy-body ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.privacy-body li {
  margin-bottom: 10px;
}

.privacy-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #909399;
}
</style> 